'imports and binds the Psyco optimizer to selected parts of turb'
try:
    import psyco
except ImportError:
    print "Sorry,Psyco optimizer not found"
else:
    from gameengine import GameEngine
    from common import RenderToViewPort
    from gamemap import TiledLayer
    print "Using Psyco optimizer"
    psyco.bind(GameEngine._update)
    psyco.bind(RenderToViewPort.draw)
    psyco.bind(RenderToViewPort.update)
    psyco.bind(TiledLayer.drawTiles)

    from gameobjects import GameObject
    psyco.bind(GameObject)

#psyco.bind(TiledLayer.getTiles2Render)


#    from weapons import Shot
#    from gamemap import GameMap

##    psyco.bind(Shot.update)
##    psyco.bind(Shot.explode)
#    psyco.bind(GameMap.pointCollide)
#    psyco.bind(NoNetGameEngine.update)

